﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Dora.Tools.Insurance
{
    /// <summary>
    /// 订单投保请求Dto
    /// </summary>
    public class RequestInsuranceDto
    {
        public int OrgId { get; set; }
        public string OrgName { get; set; }
        public int RootOrgId { get; set; }
        public string RootOrgName { get; set; }

        public Guid? UserID { get; set; }
        public string UserName { get; set; }
        /// <summary>
        /// 订单Id
        /// </summary>
        public Guid OrderId { get; set; }
        /// <summary>
        /// 保险产品ID
        /// </summary>
        public string InsuranceProductId { get; set; }
        /// <summary>
        /// 第三方唯一流水编号
        /// </summary>
        public string TradeCode { get; set; }
        /// <summary>
        /// 保险期间（单位：天）
        /// </summary>
        public string Period { get; set; }
        /// <summary>
        /// 起保日期
        /// </summary>
        public DateTime EffectDate { get; set; }
        /// <summary>
        /// 止保日期
        /// </summary>
        public DateTime ExpiredDate { get; set; }
        /// <summary>
        /// 线路玩法名称
        /// </summary>
        public string LineWayName { get; set; }
        /// <summary>
        /// 旅游产品名称
        /// </summary>
        public string TourName { get; set; }
        /// <summary>
        /// 投保人信息 2019-12-25 投保人由游客信息改为传公司信息
        /// </summary>
        public ApplicantInfo ApplicantInfo { get; set; }
        /// <summary>
        /// 出行游客(被投保人)集合
        /// </summary>
        public List<InsuredTouristInfo> TouristList { get; set; }
    }

    /// <summary>
    /// 投保人信息
    /// </summary>
    public class ApplicantInfo
    {
        /// <summary>
        /// 投保人姓名    必填
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 投保人性别  F:女,M:男     必填
        /// </summary>
        public string Gender { get; set; }
        /// <summary>
        /// 投保人证件类型   I:身份证,P:护照,O:其他    必填
        /// </summary>
        public string CertTp { get; set; }
        /// <summary>
        /// 投保人证件号    必填
        /// </summary>
        public string CertCode { get; set; }
        /// <summary>
        /// 投保人出生日期  yyyy-MM-dd(如1990-01-26)    必填
        /// </summary>
        public DateTime Birthday { get; set; }
        /// <summary>
        /// 投保人手机号  用于接收投保短信,部门保司会发,不传不会发送短信
        /// </summary>
        public string Mobile { get; set; }
        /// <summary>
        /// 投保人邮箱	于接收电子保单,部门保司会发
        /// </summary>
        public string Email { get; set; }
    }

    /// <summary>
    /// 被保人信息
    /// </summary>
    public class InsuredTouristInfo
    {
        /// <summary>
        /// 被保人编号,原样返回      必填
        /// </summary>
        public string InsuredId { get; set; }
        /// <summary>
        /// 被保人姓名      必填
        /// </summary>
        public string InsuredName { get; set; }
        /// <summary>
        /// 被保人性别   F:女,M:男      必填
        /// </summary>
        public string Gender { get; set; }
        /// <summary>
        /// 被保人证件类型      必填
        /// </summary>
        public string CertTp { get; set; }
        /// <summary>
        /// 被保人证件号      必填
        /// </summary>
        public string CertCode { get; set; }
        /// <summary>
        /// 被保人出生日期	 yyyy-MM-dd(如1990-01-26)      必填
        /// </summary>
        public DateTime Birthday { get; set; }
        /// <summary>
        /// 与投保人关系       必填
        /// </summary>
        public string Relation { get; set; }
        /// <summary>
        /// 被保人手机号
        /// </summary>
        public string Mobile { get; set; }
        /// <summary>
        /// 被保人邮箱
        /// </summary>
        public string Email { get; set; }
    }
}
